package com.woniu.springbootshiro.service;

import com.woniu.springbootshiro.mapper.AreaMapper;
import com.woniu.springbootshiro.pojo.Area;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AreaService {
    @Autowired
    private AreaMapper am;

    public List<Area> queryArea(int areaSuperior){

            return am.queryArea(areaSuperior);
    }

    public List<Area> quertAll(){

        return am.selectAll();
    }
}
